﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Facebook_Graph_Toolkit.FacebookObjects {
    /// <summary>
    /// The name and id of a Facebook User/Page/Application
    /// </summary>
    public class NameIDPair : GraphApi.GraphApiObject{
        /// <summary>
        /// name of the Facebook User/Page/Application
        /// </summary>
        public string Name { get { return (string)data["name"]; } }
        /// <summary>
        /// id of the Facebook User/Page/Application
        /// </summary>
        public string ID { get { return (string)data["id"]; } }
        internal NameIDPair(JSON.JsonObject JO) : base(JO){
        }
        /// <summary>
        /// Converts the current NameIDPair object to is string representation
        /// </summary>
        /// <returns></returns>
        public override string ToString() {
            return "{ "+string.Format("Name={0}; ID={1}", Name, ID)+" }";
        }
    }
}
